96. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2020-08-14 00:01:34 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

96.1 Files compared

#LocationFileLast Modified
1Porto v3.2.3/Magento 2.x/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/templatesfilter.phtml2016-09-26 19:15:52 +0000
22020-08-14 00:01:34 +0000

96.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged00
Changed00
Inserted00
Removed168

96.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

96.4 Active regular expressions

No regular expressions were active.

96.5 Comparison detail

1 <ol class="items">    
2     <?php foreach ($filterItems as $filterItem): ?>    
3         <?php    
4         $filter = $filterItem->getFilter();    
5         $attributeModel = $filter->getData('attribute_model');    
6         $inputName = $filter->getRequestVar();    
7         $requestValue = $block->getRequest()->getParam($inputName);    
8         $requestArray = $requestValue ? explode(',', $requestValue) : [];    
9         $url = in_array($filterItem->getValue(), $requestArray) ? $filterItem->getRemoveUrl() : $filterItem->getUrl();    
10         ?>    
11         <li class="item">    
12             <?php if($attributeModel && $attributeModel->getFrontendInput() == 'price'): ?>    
13                 <?php    
14                     $productCollection = $filter->getLayer()->getProductCollection();    
15                     $productCollectionClone = $productCollection->getCollectionClone();    
16                     $collection = $productCollectionClone    
17                         ->removeAttributeSearch(['price.from', 'price.to']);    
18     
19                     $min = $collection->getMinPrice();    
20                     $max = $collection->getMaxPrice();    
21     
22                     list($from, $to) = $requestValue ? explode('-', $requestValue) : [$min, $max];    
23                 ?>    
24                 <div id="ln_price_attribute">    
25                     <div id="ln_price_slider"></div>    
26                     <div id="ln_price_text"></div>    
27                 </div>    
28                 <script type="text/x-magento-init">    
29                     {    
30                         "#ln_price_attribute": {    
31                             "Mageplaza_LayeredNavigation/js/price/slider": {    
32                                 "selectedFrom": <?php echo $from ?>,    
33                                 "selectedTo": <?php echo $to ?>,    
34                                 "minValue": <?php echo $min ?>,    
35                                 "maxValue": <?php echo $max ?>,    
36                                 "priceFormat": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Tax\Helper\Data')->getPriceFormat($block->getStore()); ?>,    
37                                 "ajaxUrl": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($filterItem->getUrl()) ?>    
38                             }    
39                         }    
40                     }    
41                 </script>    
42                 <?php break; ?>    
43             <?php else: ?>    
44 »       »       »       »       <?php if ($filterItem->getCount() > 0): ?>    
45                     <a href="<?php echo $block->escapeUrl($url) ?>">    
46                         <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?>    
47                             <input type="checkbox" <?php echo in_array($filterItem->getValue(), $requestArray) ? 'checked="checked"' : ''  ?> />    
48                         <?php endif; ?>    
49 »       »       »       »       »       »       <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>    
50                         <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?>    
51                             <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">    
52 »       »       »       »       »       »       »       »       <?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>    
53                         <?php endif; ?>    
54 »       »       »       »       »       </a>    
55                 <?php else:?>    
56                     <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?>    
57                         <input type="checkbox" disabled="disabled" />    
58                     <?php endif; ?>    
59                     <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>    
60                     <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?>    
61                         <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">    
62 »       »       »       »       »       »       »       <?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>    
63                     <?php endif; ?>    
64                 <?php endif; ?>    
65             <?php endif; ?>    
66         </li>    
67     <?php endforeach ?>    
68 </ol>